//
//  XDErrorTopicCell.m
//  XDEducation
//
//  Created by apple on 2017/4/18.
//  Copyright © 2017年 apple. All rights reserved.
//

#import "XDErrorTopicCell.h"
#import "XDErrorTopicModel.h"
#import "XDErrorsStarWarModel.h"
#import "XDErrorHomeWorkModel.h"
@interface XDErrorTopicCell ()
@property (weak, nonatomic) IBOutlet UILabel *errorNumberLabel;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@end

@implementation XDErrorTopicCell

-(void)setErrorTopModel:(XDErrorTopicModel *)errorTopModel{
    
    _errorTopModel = errorTopModel;
    
    self.titleLabel.text = errorTopModel.knowledge_name;
    
    self.errorNumberLabel.text = [NSString stringWithFormat:@"错题数 %@",errorTopModel.error_count];
}

-(void)setStartWarModel:(XDErrorsStarWarModel *)startWarModel{

    _startWarModel = startWarModel;
    
    self.titleLabel.text = startWarModel.title;
    
    self.errorNumberLabel.text = [NSString stringWithFormat:@"错题数 %@",startWarModel.errorNum];
}

-(void)setHomeWorkModel:(XDErrorHomeWorkModel *)homeWorkModel{

    _homeWorkModel = homeWorkModel;
    
    self.titleLabel.text = homeWorkModel.homework_name;
    
    self.errorNumberLabel.text = [NSString stringWithFormat:@"错题数 %@",homeWorkModel.error_count];
}


- (IBAction)resolveErrorBtn:(id)sender {
    
    
}
- (IBAction)detailsBtn:(id)sender {
    
    
}

@end
